﻿
namespace MockingBird.Xml.XIG
{
    public class GeneratorSettings : IGeneratorSettings
    {
        private const int DEFAULT_LIST_LENGTH = 3;
        private const int DEFAULT_MAX_THRESHOLD = 5;

        private int listLength;
        private int maxThreshold;

        public int ListLength
        {
            get
            {
                if ((listLength == null) || (listLength == 0))
                    return DEFAULT_LIST_LENGTH;
                else
                    return listLength;
            }
            set
            {
                listLength = value;
            }
        }

        public int MaxThreshold
        {
            get
            {
                if ((maxThreshold == null) || (maxThreshold == 0))
                    return DEFAULT_MAX_THRESHOLD;
                else
                    return maxThreshold;
            }
            set
            {
                maxThreshold = value;
            }

        }
    }
}
